<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge" />
    <include file="./Public/Admin/header.html" />
</head>
<body>
<style>
    label{
        display: inline;
    }
</style>
<div id="main">
    <div class="container-fluid">

        <div class="row-fluid">
            <div class="span12">
                <div class="box">
                    <div class="box-title">
                        <div class="span10">
                            <h3><i class="icon-edit"></i>用户详情</h3>
                        </div>
                        <div class="span2"><a class="btn" href="javascript:window.history.go(-1)">返回</a></div>
                    </div>

                    <div class="box-content">
                        <!--<form action="admin/main/addtypes" method="post" class="form-horizontal form-validate">-->
                        <div class="control-group" id="order">
                            <label for="order" class="control-label">姓名：</label>
                            <label class="control-label"><?php echo $info['true_name']; ?>

                            </label>
                        </div>

                        <div class="control-group">
                            <label for="order" class="control-label">电话：</label>
                            <label class="control-label"><?php echo $info['phone']; ?></label>
                        </div>

                        <div class="control-group">
                            <label for="order" class="control-label">性别：</label>
                            <label class="control-label">
                                <?php if($info['sex']==1):?>
                               男
                                <?php else:?>
                                女
                                <?php endif;?>
                            </label>
                        </div>
                        <div class="control-group">
                            <label for="order" class="control-label">等级：</label>
                            <label class="control-label"><?php echo $info['level']; ?></label>
                        </div>
                        <div class="control-group">
                            <label for="order" class="control-label">历史能量：</label>
                            <label class="control-label"><?php echo $info['history_energy']; ?></label>
                        </div>
                        <div class="control-group">
                            <label for="order" class="control-label">现有能量：</label>
                            <label class="control-label"><?php echo $info['now_energy']; ?></label>
                        </div>

                        <div class="control-group">
                            <label for="order" class="control-label">注册时间：</label>
                            <label class="control-label"><?php if($info['reg_time']>0) echo date('Y-m-d H:i:s' ,$info['reg_time']); ?></label>
                        </div>
                        <div class="control-group">
                            <label for="order" class="control-label">自愿者属性：</label>
                            <label class="control-label">
                                <?php foreach($info['is_new'] as $k=>$v):?>
                                <?php echo $v; ?>
                                <?php endforeach;?>
                            </label>
                        </div>
                        <div class="control-group">
                            <label for="order" class="control-label">已领取任务：</label>
                            <label class="control-label"><?php echo $info['task_num']; ?></label>
                        </div>
                        <div class="control-group">
                            <label for="order" class="control-label">已完成任务：</label>
                            <label class="control-label"><?php echo $info['task_true_num']; ?></label>
                        </div>
                        <?php if($info['is_leader']==1):?>

                        <div class="control-group">
                            <label for="order" class="control-label">是否是组长：</label>
                            <label class="control-label">是</label>
                        </div>
                        <?php else:?>
                        <div class="control-group">
                            <label for="order" class="control-label">是否是组长：</label>
                            <label class="control-label">不是</label>
                        </div>
                        <?php endif;?>

                        <?php if($info['is_vip']):?>
                        <div class="box-title">
                        <div class="span10">
                            <h3><i class="icon-edit"></i>会员信息</h3>
                        </div>
                            </div>
                        <div >
                            <!--<form action="admin/main/addtypes" method="post" class="form-horizontal form-validate">-->
                            <div class="control-group" id="order">
                                <label for="order" class="control-label">姓名：</label>
                                <label class="control-label"><?php echo $vip['name']; ?>

                                </label>
                            </div>

                            <div class="control-group">
                                <label for="order" class="control-label">年龄：</label>
                                <label class="control-label"><?php echo $vip['age']; ?></label>
                            </div>
                            <div class="control-group">
                                <label for="order" class="control-label">工作：</label>
                                <label class="control-label"><?php echo $vip['job']; ?></label>
                            </div>
                            <div class="control-group">
                                <label for="order" class="control-label">公司名称：</label>
                                <label class="control-label"><?php echo $vip['company_name']; ?></label>
                            </div>
                            <div class="control-group">
                                <label for="order" class="control-label">专业：</label>
                                <label class="control-label"><?php echo $vip['major']; ?></label>
                            </div>
                            <div class="control-group">
                                <label for="order" class="control-label">爱好：</label>
                                <label class="control-label"><?php echo $vip['hobby']; ?></label>
                            </div>
                            <div class="control-group">
                                <label for="order" class="control-label">擅长的事：</label>
                                <label class="control-label"><?php echo $vip['skill']; ?></label>
                            </div>
                            <div class="control-group">
                                <label for="order" class="control-label">感兴趣的行业：</label>
                                <label class="control-label"><?php echo $vip['interest']; ?></label>
                            </div>

                            <div class="control-group">
                                <label for="order" class="control-label">申请时间：</label>
                                <label class="control-label"><?php if($vip['application_time']>0) echo $vip['application_time']; ?></label>
                            </div>
                            </div>

                        <?php else:?>
                            <div class="control-group">
                                <label for="order" class="control-label">是否是会员：</label>
                                <label class="control-label">不是</label>
                            </div>
                       <?php endif;?>

                        <!--</form>-->
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
</html>
